.class Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;
.super Ljava/lang/Object;
.source "ShowComments.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/ShowComments;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "JavaScriptInterface"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/ShowComments;


# direct methods
.method private constructor <init>(Lcom/netease/newsreader/activity/ShowComments;)V
    .locals 0
    .parameter

    .prologue
    .line 2710
    iput-object p1, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/netease/newsreader/activity/ShowComments;Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 2710
    invoke-direct {p0, p1}, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;-><init>(Lcom/netease/newsreader/activity/ShowComments;)V

    return-void
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;)Lcom/netease/newsreader/activity/ShowComments;
    .locals 1
    .parameter

    .prologue
    .line 2710
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    return-object v0
.end method


# virtual methods
.method public getBody()Ljava/lang/String;
    .locals 1

    .prologue
    .line 2717
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$92(Lcom/netease/newsreader/activity/ShowComments;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getMore()V
    .locals 1

    .prologue
    .line 2725
    new-instance v0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface$1;-><init>(Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;)V

    .line 2731
    invoke-virtual {v0}, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface$1;->start()V

    .line 2732
    return-void
.end method

.method public getMoreBody()Ljava/lang/String;
    .locals 1

    .prologue
    .line 2721
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$93(Lcom/netease/newsreader/activity/ShowComments;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getReplyBoard()Ljava/lang/String;
    .locals 2

    .prologue
    .line 2761
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "replyBoard"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "replyBoard"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 2762
    :goto_0
    return-object v0

    :cond_0
    const-string v0, ""

    goto :goto_0
.end method

.method public getReplyCount()I
    .locals 2

    .prologue
    .line 2754
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "replyCount"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2756
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "replyCount"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 2755
    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    .line 2757
    :goto_0
    return v0

    :cond_0
    const/4 v0, -0x1

    goto :goto_0
.end method

.method public getSource()Ljava/lang/String;
    .locals 2

    .prologue
    .line 2749
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "source"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "source"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 2750
    :goto_0
    return-object v0

    :cond_0
    const-string v0, ""

    goto :goto_0
.end method

.method public getTime()Ljava/lang/String;
    .locals 2

    .prologue
    .line 2744
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "ptime"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "ptime"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 2745
    :goto_0
    return-object v0

    :cond_0
    const-string v0, ""

    goto :goto_0
.end method

.method public getTitle()Ljava/lang/String;
    .locals 2

    .prologue
    .line 2712
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "title"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "title"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 2713
    :goto_0
    return-object v0

    :cond_0
    const-string v0, ""

    goto :goto_0
.end method

.method public hasNext()I
    .locals 2

    .prologue
    .line 2735
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "hasNext"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2736
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v0

    const-string v1, "hasNext"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2737
    const/4 v0, 0x1

    .line 2739
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public showBigPic(I)V
    .locals 2
    .parameter "i"

    .prologue
    .line 2766
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 2767
    .local v0, msg:Landroid/os/Message;
    const/4 v1, 0x6

    iput v1, v0, Landroid/os/Message;->what:I

    .line 2768
    iput p1, v0, Landroid/os/Message;->arg1:I

    .line 2769
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowComments;->access$67(Lcom/netease/newsreader/activity/ShowComments;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 2770
    return-void
.end method

.method public toLink(I)V
    .locals 9
    .parameter "i"

    .prologue
    .line 2783
    const/4 v3, 0x0

    .line 2784
    .local v3, index:I
    const/4 v5, 0x0

    .line 2785
    .local v5, linkList:Ljava/util/List;,"Ljava/util/List<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    :try_start_0
    iget-object v7, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v7}, Lcom/netease/newsreader/activity/ShowComments;->access$96(Lcom/netease/newsreader/activity/ShowComments;)I

    move-result v7

    if-lt p1, v7, :cond_1

    .line 2786
    iget-object v7, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v7}, Lcom/netease/newsreader/activity/ShowComments;->access$96(Lcom/netease/newsreader/activity/ShowComments;)I

    move-result v7

    sub-int v3, p1, v7

    .line 2787
    iget-object v7, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v7}, Lcom/netease/newsreader/activity/ShowComments;->access$97(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v7

    const-string v8, "link"

    invoke-virtual {v7, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    move-object v0, v7

    check-cast v0, Ljava/util/ArrayList;

    move-object v5, v0

    .line 2792
    :goto_0
    if-eqz v5, :cond_0

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v7

    if-lez v7, :cond_0

    .line 2793
    invoke-interface {v5, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/util/HashMap;

    .line 2794
    .local v6, linkMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v7, "href"

    invoke-virtual {v6, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 2795
    .local v2, href:Ljava/lang/String;
    new-instance v4, Landroid/content/Intent;

    iget-object v7, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    const-class v8, Lcom/netease/newsreader/activity/LinkOutSide;

    invoke-direct {v4, v7, v8}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 2796
    .local v4, intent:Landroid/content/Intent;
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 2797
    .local v1, extras:Landroid/os/Bundle;
    const-string v7, "href"

    invoke-virtual {v1, v7, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 2798
    invoke-virtual {v4, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 2799
    iget-object v7, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-virtual {v7, v4}, Lcom/netease/newsreader/activity/ShowComments;->startActivity(Landroid/content/Intent;)V

    .line 2807
    .end local v1           #extras:Landroid/os/Bundle;
    .end local v2           #href:Ljava/lang/String;
    .end local v4           #intent:Landroid/content/Intent;
    .end local v6           #linkMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_0
    :goto_1
    return-void

    .line 2789
    :cond_1
    move v3, p1

    .line 2790
    iget-object v7, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v7}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v7

    const-string v8, "link"

    invoke-virtual {v7, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    move-object v0, v7

    check-cast v0, Ljava/util/ArrayList;

    move-object v5, v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 2803
    :catch_0
    move-exception v7

    goto :goto_1
.end method

.method public triggerFullScreen()V
    .locals 2

    .prologue
    .line 2773
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$95(Lcom/netease/newsreader/activity/ShowComments;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2774
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$JavaScriptInterface;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowComments;->access$67(Lcom/netease/newsreader/activity/ShowComments;)Landroid/os/Handler;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 2777
    :cond_0
    return-void
.end method
